package com.example.kotlinstudy.类与对象

//包
fun baz() {}
class Bar {}

public var bar: Int = 5
    private set
internal val boX = 6

///类成员
open class Outer {
    private val a = 1
    protected open val b = 3
    internal open val c = 3
    val d = 4

    protected class Nested {
        public val e: Int = 5
    }
}

class SubClass : Outer() {
    override val b: Int
        get() = 5
    override val c: Int
        get() = 7
}

class Unrelated constructor(outer: Outer) {

}

//构造函数
class TestC private constructor(a: Int) {

}